home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_25160.txt < prev    next >
Text File  |  1990-10-02  |  9KB  |  372 lines

  1. -- card: 25160 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 4239
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global ladderPit
  9.   if ladderPit
  10.   then set the loc of card button "ladder" to 45,208
  11. else set the loc of card button "ladder" to 149,127
  12. send cardOpened to background
  13. end openCard
  14.  
  15. on move
  16.   global direction,chase,blasting,ladderPit,causeOfDeath
  17.   if direction = "north" then
  18.     go to card id 12716
  19.     exit move
  20.   end if
  21.   if direction = "east" or direction = "up" then
  22.     go card id 24153
  23.     exit move
  24.   end if
  25.   if direction = "down" then
  26.     if ladderPit then
  27.       go to card id 25762
  28.       exit move
  29.     else
  30.       answer "Do you really want to go into the pit?" with "yes"or"no"
  31.       if it is "no" then exit move
  32.       put "pit1" into causeOfDeath
  33.       go to card id 3409
  34.       exit move
  35.     end if
  36.   end if
  37.   pass move
  38. end move
  39.  
  40.  
  41. on closeCard
  42.   set the cursor to 4
  43.   put "" into field 3
  44. end closeCard
  45.  
  46. on take
  47.   global object,carried,ladderPit,cardID,prevID
  48.   put last word of object into obj
  49.   delete first char of obj
  50.   delete last char of obj
  51.   if obj="ladder" then
  52.     hide object
  53.     set the loc of object to 149,127
  54.     put false into ladderPit
  55.     put cardID into prevID
  56.   end if
  57.   -- remember to update carried if you do not pass take
  58.   pass take
  59. end take
  60.  
  61. on drop
  62.   global object,dropRoom,carried
  63.   answer "Drop object in this room, or into the pit?" with "pit" or "room"
  64.   if it="pit" then put 7465 into dropRoom
  65.   -- remember to update carried if you do not pass take
  66.   pass drop
  67. end drop
  68.  
  69. on use
  70.   global object,carried,ladderPit
  71.   put last word of object into obj
  72.   delete first char of obj
  73.   delete last char of obj
  74.   if obj="ladder" then
  75.     show object
  76.     set the loc of object to 123,147
  77.     set the loc of object to 97,167
  78.     set the loc of object to 71,187
  79.     set the loc of object to 45,208
  80.     put "The rope ladder is tied to the pitons and leads into the pit." into field 3
  81.     put true into ladderPit
  82.     exit use
  83.   end if
  84.   -- update carried if object lost (or do so in inv. card button)
  85.   pass use
  86. end use
  87.  
  88.  
  89.  
  90.  
  91.  
  92. -- part 16 (button)
  93. -- low flags: 80
  94. -- high flags: 2000
  95. -- rect: left=122 top=230 right=266 bottom=156
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 9301 / 9301
  98. -- text alignment: 1
  99. -- font id: 0
  100. -- text size: 12
  101. -- style flags: 0
  102. -- line height: 16
  103. -- part name: knife
  104. ----- HyperTalk script -----
  105. on mouseUp
  106.   global takeFlag,examFlag,object,cardID
  107.   put the name of the target into object
  108.   if takeFlag = true
  109.   then send take to card id cardID
  110. else put "a knife" into field 3
  111. put false into examFlag
  112. end mouseUp
  113.  
  114.  
  115.  
  116. -- part 17 (button)
  117. -- low flags: 80
  118. -- high flags: 2000
  119. -- rect: left=88 top=230 right=266 bottom=122
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 1015 / 1015
  122. -- text alignment: 1
  123. -- font id: 0
  124. -- text size: 12
  125. -- style flags: 0
  126. -- line height: 16
  127. -- part name: nodule
  128. ----- HyperTalk script -----
  129. on mouseUp
  130.   global takeFlag,examFlag,object,cardID
  131.   put the name of the target into object
  132.   if takeFlag = true
  133.   then send take to card id cardID
  134. else put "a silicon sphere" into field 3
  135. put false into examFlag
  136. end mouseUp
  137.  
  138.  
  139.  
  140. -- part 20 (button)
  141. -- low flags: 80
  142. -- high flags: 2000
  143. -- rect: left=48 top=103 right=139 bottom=82
  144. -- title width / last selected line: 0
  145. -- icon id / first selected line: 24317 / 24317
  146. -- text alignment: 1
  147. -- font id: 0
  148. -- text size: 12
  149. -- style flags: 0
  150. -- line height: 16
  151. -- part name: key
  152. ----- HyperTalk script -----
  153. on mouseUp
  154.   global takeFlag,examFlag,object,cardID
  155.   put the name of the target into object
  156.   if takeFlag = true
  157.   then send take to card id cardID
  158. else put "a key" into field 3
  159. put false into examFlag
  160. end mouseUp
  161.  
  162.  
  163.  
  164. -- part 21 (button)
  165. -- low flags: 80
  166. -- high flags: 2000
  167. -- rect: left=192 top=183 right=219 bottom=226
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 7012 / 7012
  170. -- text alignment: 1
  171. -- font id: 0
  172. -- text size: 12
  173. -- style flags: 0
  174. -- line height: 16
  175. -- part name: gem
  176. ----- HyperTalk script -----
  177. on mouseUp
  178.   global takeFlag,examFlag,object,cardID
  179.   put the name of the target into object
  180.   if takeFlag = true
  181.   then send take to card id cardID
  182. else put "a glowing gem" into field 3
  183. put false into examFlag
  184. end mouseUp
  185.  
  186.  
  187.  
  188. -- part 22 (button)
  189. -- low flags: 80
  190. -- high flags: 2000
  191. -- rect: left=178 top=223 right=259 bottom=212
  192. -- title width / last selected line: 0
  193. -- icon id / first selected line: 23078 / 23078
  194. -- text alignment: 1
  195. -- font id: 0
  196. -- text size: 12
  197. -- style flags: 0
  198. -- line height: 16
  199. -- part name: orb
  200. ----- HyperTalk script -----
  201. on mouseUp
  202.   global takeFlag,examFlag,object,cardID
  203.   put the name of the target into object
  204.   if takeFlag = true
  205.   then send take to card id cardID
  206. else put "a crystal orb" into field 3
  207. put false into examFlag
  208. end mouseUp
  209.  
  210.  
  211.  
  212. -- part 35 (button)
  213. -- low flags: 00
  214. -- high flags: 0000
  215. -- rect: left=4 top=195 right=218 bottom=86
  216. -- title width / last selected line: 0
  217. -- icon id / first selected line: 0 / 0
  218. -- text alignment: 1
  219. -- font id: 0
  220. -- text size: 12
  221. -- style flags: 0
  222. -- line height: 16
  223. -- part name: 
  224. ----- HyperTalk script -----
  225. on mouseUp
  226.   global examFlag,direction,cardID,takeFlag
  227.   if examFlag then
  228.     put "A bottomless pit.  Looks unsafe to climb into." into field 3
  229.     put false into examFlag
  230.   else
  231.     put false into takeFlag
  232.     put "down" into direction
  233.     send move to card id cardID
  234.   end if
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 18 (button)
  240. -- low flags: 80
  241. -- high flags: 2000
  242. -- rect: left=132 top=109 right=145 bottom=166
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 14953 / 14953
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: ladder
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   global takeFlag,examFlag,object,cardID,ladderPit,direction
  254.   put the name of the target into object
  255.   if takeFlag = true then
  256.     send take to card id cardID
  257.   else
  258.     put "a rope ladder" into field 3
  259.     put false into examFlag
  260.   end if
  261.   if ladderPit then
  262.     put "down" into direction
  263.     send move to card id cardID
  264.   end if
  265. end mouseUp
  266.  
  267.  
  268.  
  269. -- part 23 (button)
  270. -- low flags: 00
  271. -- high flags: 0000
  272. -- rect: left=200 top=66 right=153 bottom=241
  273. -- title width / last selected line: 0
  274. -- icon id / first selected line: 0 / 0
  275. -- text alignment: 1
  276. -- font id: 0
  277. -- text size: 12
  278. -- style flags: 0
  279. -- line height: 16
  280. -- part name: 
  281. ----- HyperTalk script -----
  282. on mouseUp
  283.   global examFlag,direction,cardID
  284.   if examFlag then
  285.     put "a stairway leading east and up" into field 3
  286.     put false into examFlag
  287.   else
  288.     put "east" into direction
  289.     send move to card id cardID
  290.   end if
  291. end mouseUp
  292.  
  293.  
  294.  
  295. -- part 33 (button)
  296. -- low flags: 00
  297. -- high flags: 0000
  298. -- rect: left=73 top=21 right=95 bottom=177
  299. -- title width / last selected line: 0
  300. -- icon id / first selected line: 0 / 0
  301. -- text alignment: 1
  302. -- font id: 0
  303. -- text size: 12
  304. -- style flags: 0
  305. -- line height: 16
  306. -- part name: 
  307. ----- HyperTalk script -----
  308. on mouseUp
  309.   global examFlag,direction,cardID
  310.   if examFlag then
  311.     put "a hole blasted in the orange flowstone wall leads north" into field 3
  312.     put false into examFlag
  313.   else
  314.     put "north" into direction
  315.     send move to card id cardID
  316.   end if
  317. end mouseUp
  318.  
  319.  
  320.  
  321. -- part 40 (button)
  322. -- low flags: 00
  323. -- high flags: 0000
  324. -- rect: left=31 top=184 right=196 bottom=60
  325. -- title width / last selected line: 0
  326. -- icon id / first selected line: 0 / 0
  327. -- text alignment: 1
  328. -- font id: 0
  329. -- text size: 12
  330. -- style flags: 0
  331. -- line height: 16
  332. -- part name: 
  333. ----- HyperTalk script -----
  334. on mouseUp
  335.   global examFlag,takeFlag,direction,cardID
  336.   if takeFlag then
  337.     put "You can't take the pitons.  Thay are solidly attached." into field 3
  338.     put false into takeFlag
  339.   else
  340.     put "Two pitons imbedded in the stone." into field 3
  341.     put false into examFlag
  342.   end if
  343. end mouseUp
  344.  
  345.  
  346.  
  347. -- part 41 (button)
  348. -- low flags: 00
  349. -- high flags: 0001
  350. -- rect: left=20 top=217 right=249 bottom=69
  351. -- title width / last selected line: 0
  352. -- icon id / first selected line: 0 / 0
  353. -- text alignment: 1
  354. -- font id: 0
  355. -- text size: 12
  356. -- style flags: 0
  357. -- line height: 16
  358. -- part name: New Button
  359.  
  360.  
  361. -- part contents for background part 25
  362. ----- text -----
  363. Bottomless Pit Room
  364. (looking north)
  365.  
  366. -- part contents for background part 24
  367. ----- text -----
  368. You are in the bottomless pit room.  Stone stairs lead upward to the east.  There is a dark, smooth-walled pit here, the bottom of which you can not see.  A cold wind is whistling out of the pit with an almost deafening sound.  The north wall of the room is a sheet of orange flowstone with a gaping hole blasted through it.
  369.  
  370. -- part contents for background part 36
  371. ----- text -----
  372. 1